package com.sunwoda.springbootredis.dto;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.excel.annotation.ExcelCollection;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * @program: springbootredis
 * @description:
 * @author: SGR
 * @create: 2021-09-23 14:25
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class RequestOrderDto implements Serializable {

    /**
     * 主键ID
     */
    private Integer id;
    /**
     * 请购订单编码
     */
    @Excel(name = "请购订单编码", needMerge = true)
    private String requestOrderNumber;
    /**
     * 状态
     */
    @Excel(name = "状态", needMerge = true)
    private Integer state;
    /**
     * 客户
     */
    @Excel(name = "客户", needMerge = true)
    private String customer;
    /**
     * 供应商
     */
    @Excel(name = "供应商", needMerge = true)
    private String supplier;
    /**
     * 收货地址
     */
    @Excel(name = "收货地址", needMerge = true)
    private String saveAddr;
    /**
     * 收货仓库
     */
    @Excel(name = "收货仓库", needMerge = true)
    private String saveWarehouse;
    /**
     * 交货日期
     */
    @Excel(name = "交货日期", needMerge = true)
    private Date demandTime;
    /**
     * 备注
     */
    @Excel(name = "备注", needMerge = true)
    private String remark;
    /**
     * 请购单创建时间
     */
    @Excel(name = "请购单创建时间", needMerge = true)
    private Date orderCreateTime;

    @ExcelCollection(name = "line")
    private List<RequestOrderLineDto> lineDtoList;
}
